import request from '@/utils/request'

export function getOrderList (data) {
  return request({
    url: '/api/order/index',
    method: 'post',
    data
  })
}

export function detailOrder (data) {
  return request({
    url: '/api/order/detail',
    method: 'post',
    data
  })
}
export function cancelOrder (data) {
  return request({
    url: '/api/order/order_cancel',
    method: 'post',
    data
  })
}

export function deleteOrder (data) {
  return request({
    url: '/api/order/delete',
    method: 'post',
    data
  })
}

export function distributionOrder (data) {
  return request({
    url: '/api/order/distribution',
    method: 'post',
    data
  })
}

export function updateStatusOrder (data) {
  return request({
    url: '/api/order/update_status',
    method: 'post',
    data
  })
}

export function updateReport (data) {
  return request({
    url: '/api/order/report',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data
  })
}

export function getPriceList (data) {
  return request({
    url: '/api/price/index',
    method: 'post',
    data
  })
}

export function savePrice (data) {
  return request({
    url: '/api/price/save',
    method: 'post',
    data
  })
}

export function detailPrice (data) {
  return request({
    url: '/api/price/detail',
    method: 'post',
    data
  })
}

export function deletePrice (data) {
  return request({
    url: '/api/price/delete',
    method: 'post',
    data
  })
}

export function getCoach (data) {
  return request({
    // url: '/api/setting/user/get-coach',
    url: '/api/order/index',
    method: 'post',
    data
  })
}
